package com.foreknow.practice.impl.Impl4;

public class Hero extends ActionCharacter implements CanFly,CanSwim {

    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    void fight(String emp) {

    }

    @Override
    void speak(String s) {

    }

    @Override
    public void fly() {

    }

    @Override
    public void swim() {
        System.out.println(name+"游泳");
    }
}
